import router from './router'
import { getToken } from '@/utils/auth.js'

router.beforeEach((to, from, next) => {
  const hasToken = getToken()
  if (!hasToken) {
    next()
  } else {
    next()
  }
})

router.afterEach(() => {})
